// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取空调历史环境数据 GET /device/env/history/airCool */
export async function envDeviceControllerGetHistoryAirCoolData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetHistoryAirCoolDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationAirCoolData>(`${apiPrefix}/device/env/history/airCool`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取除湿器历史环境数据 GET /device/env/history/dehumidity */
export async function envDeviceControllerGetHistoryDehumidityData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetHistoryDehumidityDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationDehumidityData>(
    `${apiPrefix}/device/env/history/dehumidity`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取消防复合检测历史环境数据 GET /device/env/history/fireDetector */
export async function envDeviceControllerGetHistoryFireDetectorData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetHistoryFireDetectorDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationFireDetectorData>(
    `${apiPrefix}/device/env/history/fireDetector`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取消防主机历史环境数据 GET /device/env/history/fireHost */
export async function envDeviceControllerGetHistoryFireHostData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetHistoryFireHostDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationFireHostData>(`${apiPrefix}/device/env/history/fireHost`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取漏液检测历史环境数据 GET /device/env/history/leakDetector */
export async function envDeviceControllerGetHistoryLeakDetectorDataData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetHistoryLeakDetectorDataDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationLeakDetectorData>(
    `${apiPrefix}/device/env/history/leakDetector`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取液冷历史环境数据 GET /device/env/history/liquidCool */
export async function envDeviceControllerGetHistoryLiquidCoolData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetHistoryLiquidCoolDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationLiquidCoolData>(
    `${apiPrefix}/device/env/history/liquidCool`,
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    },
  );
}

/** 获取空调实时环境数据 GET /device/env/realtime/airCool */
export async function envDeviceControllerGetRealTimeAirCoolData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetRealTimeAirCoolDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultAirCoolData>(`${apiPrefix}/device/env/realtime/airCool`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取除湿器实时环境数据 GET /device/env/realtime/dehumidity */
export async function envDeviceControllerGetRealTimeDehumidityData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetRealTimeDehumidityDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultDehumidityData>(`${apiPrefix}/device/env/realtime/dehumidity`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取消防复合检测实时环境数据 GET /device/env/realtime/fireDetector */
export async function envDeviceControllerGetRealTimeFireDetectorData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetRealTimeFireDetectorDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultFireDetectorData>(`${apiPrefix}/device/env/realtime/fireDetector`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取消防主机实时环境数据 GET /device/env/realtime/fireHost */
export async function envDeviceControllerGetRealTimeFireHostData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetRealTimeFireHostDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultFireHostData>(`${apiPrefix}/device/env/realtime/fireHost`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取漏液检测实时环境数据 GET /device/env/realtime/leakDetector */
export async function envDeviceControllerGetRealTimeLeakDetectorData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetRealTimeLeakDetectorDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultLeakDetectorData>(`${apiPrefix}/device/env/realtime/leakDetector`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取液冷实时环境数据 GET /device/env/realtime/liquidCool */
export async function envDeviceControllerGetRealTimeLiquidCoolData(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.envDeviceControllerGetRealTimeLiquidCoolDataParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultLiquidCoolData>(`${apiPrefix}/device/env/realtime/liquidCool`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 列出设备树 GET /device/env/tree */
export async function envDeviceControllerTreeDevice(options?: { [key: string]: any }) {
  return request<API.ApiResultListDeviceTreeVO>(`${apiPrefix}/device/env/tree`, {
    method: 'GET',
    ...(options || {}),
  });
}
